909efb0686844d38b04cbaad0942d18fa04f8602,framework/base/src/org/ofbiz/base/util/UtilProperties.java,UtilProperties,xmlToProperties,#InputStream#Locale#Properties#,945
Before Change
}
String localeString = locale.toString();
for (Element property : propertyList) {
Element value = UtilXml.firstChildElement(property, "value", "xml:lang", localeString);
if (value != null) {
if (properties == null) {
properties = new Properties();
After Change
// Support old way of specifying xml:lang value.
// Old way: en_AU, new way: en-AU
Element value = UtilXml.firstChildElement(property, "value", "xml:lang", correctedLocaleString);
if( value == null ) {
value = UtilXml.firstChildElement(property, "value", "xml:lang", localeString);
}
if (value != null) {
if (properties == null) {